package com.xyoto.community.entity.main;

import com.xyoto.community.constant.DeleteStatus;
import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author lin
 * @Date 2021/10/1 22:55
 */
@Data
@ApiModel("问答表")
public class Question extends Base {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("话题id")
    private Integer topicId;

    @ApiModelProperty("问答内容")
    private String content;

    @ApiModelProperty("删除状态（1-正常 2-删除）")
    private Short deleteStatus;

    /**
     * 空参构造设置删除状态为未删除
     */
    public Question(){
        this.deleteStatus = DeleteStatus.NO;
    }
}
